import { createRouter, createWebHistory } from "vue-router"
import HomeView from "../views/HomeView.vue"

import type { RouteRecordRaw } from "vue-router"

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "home",
        component: HomeView,
    },
    {
        path: "/about",
        name: "about",
        component: () => import("../views/AboutView.vue"),
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router
